package com.ruoyi.project.treat.service.impl;

import com.ruoyi.project.treat.domain.TreRegCost;
import com.ruoyi.project.treat.mapper.TreRegCostMapper;
import com.ruoyi.project.treat.service.ITreRegCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TreRegCostServiceImpl implements ITreRegCostService {

    @Autowired
    private TreRegCostMapper treRegCostMapper;

    @Override
    public List<TreRegCost> findAll() {
        return treRegCostMapper.selectAll();
    }

    @Override
    public TreRegCost getByName(String regName) {
        return treRegCostMapper.selectByName(regName);
    }
}
